package cn.bdqn.result;
//枚举类
public enum ExceptionEnum {
	
	USERNAME_ERROR(11,"用户名错误.."),
	PASSWORD_ERROR(12,"密码错误.."),
	NO_PRODUCT_ERROR(13,"没有商品数据.."),
	PRODUCT_QUANTITY_ERROR(14,"商品库存异常.."),
	QUANTITY_NOT_ENOUGH(15,"商品的库存数不够.."),
	SAVE_SALE_ERROR(16,"添加销售记录失败.."),
	USERNAME_PASSWORD_IS_EMPTY(17,"用户名和密码为空"),
	USER_UNLOGIN(18,"[退出登录] 用户未登录,无法退出登录."),
	PARAM_ERROR(19,"[查询商品库存] 参数错误.."),
	PRODUCTNAME_NO_EMPTY(20,"商品名称为空")
	;
	
	private Integer code;   //状态码   14
	private String message; //消息：
	
	private ExceptionEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
	public Integer getCode() {
		return code;
	}
	public String getMessage() {
		return message;
	}
	
	

}
